package com.wenhuitec.sysui.entity;


import android.os.Parcel;
import android.os.Parcelable;

public class FoodSkuModel implements Parcelable {
    private String id;
    private String name;
    private String price;
    private String pachagePrice;
    private String fl;
    private String barCode;
    private int stock;
    private int maxStock;
    private int autoStock;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getMaxStock() {
        return maxStock;
    }

    public void setMaxStock(int maxStock) {
        this.maxStock = maxStock;
    }

    public int getAutoStock() {
        return autoStock;
    }

    public void setAutoStock(int autoStock) {
        this.autoStock = autoStock;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPachagePrice() {
        return pachagePrice;
    }

    public void setPachagePrice(String pachagePrice) {
        this.pachagePrice = pachagePrice;
    }

    public String getFl() {
        return fl;
    }

    public void setFl(String fl) {
        this.fl = fl;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }


    public FoodSkuModel() {

    }

    public FoodSkuModel(Parcel in) {
        id = in.readString();
        name = in.readString();
        price = in.readString();
        pachagePrice = in.readString();
        fl = in.readString();
        barCode = in.readString();
        stock = in.readInt();
        maxStock = in.readInt();
        autoStock = in.readInt();
    }


    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(name);
        dest.writeString(price);
        dest.writeString(pachagePrice);
        dest.writeString(fl);
        dest.writeString(barCode);
        dest.writeInt(stock);
        dest.writeInt(maxStock);
        dest.writeInt(autoStock);
    }

    public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        @Override
        public FoodSkuModel createFromParcel(Parcel source) {
            return new FoodSkuModel(source);
        }

        @Override

        public FoodSkuModel[] newArray(int size) {
            return new FoodSkuModel[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }


}
